#include "idc.h"

class XD_AirTaxiDialog {
	idd = -1;
	movingEnable = true;
	onLoad="uiNamespace setVariable ['D_TAXI_DIALOG', _this select 0]";
	objects[] = {};
	class controlsBackground {
		class XD_BackGround : XC_RscText {
			idc = -1;
			type = 0;
			style = 48;
			x = 0;
			y = 0;
			w = 1.93;
			h = 1.3;
			XCTextBlack;
			colorBackground[] = {0,0,0,0};
			text = "\ca\ui\data\ui_mainmenu_background_ca.paa";
			font = "Zeppelin32";
			sizeEx = 0.032;
		};
	};
	class controls {
		class XD_MainCaption : XC_RscText {
			x = 0.12;
			y = 0.05;
			w = 0.50;
			h = 0.1;
			sizeEx = 0.035;
			colorBackground[] = {1, 1, 1, 0};
			XCTextBI;
			text = $STR_DIAG_AIRTAXI_TITLE;
		};
		class XD_CancelButton: XD_ButtonBase {
			idc = -1;
			text = $STR_DIAG_AIRTAXI_CANCEL; 
			action = "closeDialog 0";
			default = true;
			x = 0.68;
			y = 0.945;
		};
		class XD_Taxi4: XD_ButtonBase {
			idc = 11005;
			text = $STR_DIAG_AIRTAXI_ZOOM;
			action = "_display = uiNameSpace getVariable 'D_TAXI_DIALOG'; _ctrl = _display displayCtrl 19999; _ctrl ctrlSetScale 0.2; ctrlMapAnimCommit _ctrl;";
			x = 0.68;
			y = 0.38;
		};
		class XD_Taxi3: XD_ButtonBase {
			idc = 11004;
			text = $STR_DIAG_AIRTAXI_RETURN;
			action = "X_AIRTAXI_DESTINATION = 'BASE'; X_AIRTAXI_WAYPOINTS = []; closeDialog 0;";
			x = 0.68;
			y = 0.32;
		};
		class XD_Taxi2: XD_ButtonBase {
			idc = 11003;
			text = $STR_DIAG_AIRTAXI_SUPPRIMER;
			action = "{ _x setMarkerAlphaLocal 0; } foreach X_AIRTAXI_WAYPOINTS; X_AIRTAXI_WAYPOINTS = [];";
			x = 0.68;
			y = 0.26;
		};
		class XD_Taxi1: XD_ButtonBase {
			idc = 11002;
			text = $STR_DIAG_AIRTAXI_CALL;
			action = "X_AIRTAXI_DESTINATION = 'OTHER'; closeDialog 0;";
			x = 0.68;
			y = 0.20;
		};
		class XD_TaxiText : XC_RscText {
			x = 0.68;
			y = 0.16;
			w = 0.3;
			h = 0.1;
			colorBackground[] = {1, 1, 1, 0};
			XCTextBI;
			sizeEx = 0.03;
			text = $STR_DIAG_AIRTAXI_ACTION;
		};
		class XD_TaxiMapText : x_x_RscText {
			x = 0.12;
			y = 0.12;
			w = 0.5;
			h = 0.1;
			colorBackground[] = {1, 1, 1, 0};
			XCTextBlack;
			text = $STR_DIAG_AIRTAXI_ADD;
		};
		class Dom2 : XC_RscText {
			x = 0.12;
			y = 0.945;
			w = 0.25;
			h = 0.1;
			sizeEx = 0.035;
			colorBackground[] = {1, 1, 1, 0};
			XCMainCapt;
			text = "Domination! 2";
		};
		class explanation1 : SXRscText {
			idc = 11010;
			x = 0.68;
			y = 0.72;
			w = 0.4;
			h = 0.1;
			sizeEx = 0.02;
			text = $STR_DIAG_AIRTAXI_HELP1;
		};
		class explanation2 : SXRscText {
			idc = 11011;
			x = 0.68;
			y = 0.76;
			w = 0.4;
			h = 0.1;
			sizeEx = 0.02;
			text = $STR_DIAG_AIRTAXI_HELP2;
		};
		class explanation3 : SXRscText {
			idc = 11011;
			x = 0.68;
			y = 0.80;
			w = 0.4;
			h = 0.1;
			sizeEx = 0.02;
			text = $STR_DIAG_AIRTAXI_HELP3;
		};
		class explanation4 : SXRscText {
			idc = 11012;
			x = 0.68;
			y = 0.84;
			w = 0.4;
			h = 0.1;
			sizeEx = 0.02;
			text = $STR_DIAG_AIRTAXI_HELP4;
		};
		class XD_Map : XD_RscMapControl {
			idc = 19999;
			colorBackground[] = {0.9, 0.9, 0.9, 0.9};
			x = 0.12;
			y = 0.2;
			w = 0.52;
			h = 0.64;
			showCountourInterval = false;
		};
		class lblFH : SXRscText {
			x = 0.68;
			y = 0.445;
			w = 0.3;
			h = 0.1;
			colorBackground[] = {1, 1, 1, 0};
			XCTextBI;
			sizeEx = 0.035;
			text = $STR_DIAG_AIRTAXI_HEIGHT;
		};
		class FlyHeightCombo:XD_UIComboBox {
			idc = 11014;
			x = 0.86;
			y = 0.48;
			w = 0.07;
			h = 0.03;
			onLBSelChanged = "[_this] execVM 'client\fhselchanged.sqf'"; 
		};
	};
};
